package com.iuchannel.android.provider.admob;

import java.util.HashMap;
import java.util.Map;

import org.json.JSONObject;

import android.util.Log;

import com.iuchannel.android.provider.util.PostHttp;

public class Login{
	public final static String ADMOB_LOGIN_URL="https://api.admob.com/v2/auth/login";
	//public final static String ADMOB_SEARCH_URL="http://api.admob.com/v2/site/search";
	//public final static String ADMOB_STAT_URL="http://api.admob.com/v2/site/stats";
	
	//{"errors":[],"warnings":[],"data":{"token":"t1cb15c9a94dc6ce34913fa87bf113b4"},"page":{"current":1,"total":1}}
    public static String startAQuery(String _email, String _password, String _apiKey){
		String url=ADMOB_LOGIN_URL;
		url=url+"?client_key="+_apiKey+"&email="+_email+"&password="+_password;
	    //Map<String, Object> params = new HashMap<String, Object>();
	    //params.put("client_key", _apiKey);    		
	    //params.put("email", _email);
	    //params.put("password", _password);
		String result=PostHttp.postUrl(url);
		//Log.d("", msg)
		
		return result;
   	
    }	
}